package com.lgCore.netty.message;

import com.lgCore.client.workHandler.ClientNettyBootStrapPool;
import lombok.Data;

import java.io.Serializable;

@Data
public class BaseMsg implements Serializable {

    private static final long serialVersionUID = -4439226761842275240L;
    private MsgType type;
    //必须唯一，否者会出现channel调用混乱
    private String clientId;

    //业务id
    private String businessId;

//    //初始化客户端id
//    public BaseMsg() {
//        if (ipAddrKey != null) {
//            this.clientId = ClientNettyBootStrapPool.getConstantByKey(ipAddrKey) == null ? null : ClientNettyBootStrapPool.getConstantByKey(ipAddrKey).getClientId();
//        }
//
//    }
}
